package v1

import "github.com/gogf/gf/v2/frame/g"

// CreateApiReq 新增api参数结构体
type CreateApiReq struct {
	g.Meta `path:"/v1/vapi/create" tags:"VAPI" method:"post" summary:"新建API"`
	Route  string `json:"route" v:"required#路径不能为空" dc:"路径"`
	Desc   string `json:"desc" dc:"说明"`
	Method uint   `json:"method" dc:"动作 1-get 2-post 3-put 4-delete"`
	Group  string `json:"group" dc:"分组"`
	Status uint   `json:"status" dc:"状态 0-停用 1-启用"`
}

// CreateApiRes 新增api返回消息结构体
type CreateApiRes bool
